class SoundData{
    constructor(id,name,pid,pname,loop,position,volume,pitch,outputbus,path){
        this.name = name;
        this.id = id;
        this.pid = pid;
        this.pname = pname;
        this.audiofile = path;
        if (loop){
            this.loop = 'Loop';
        }
        else{
            this.loop = 'One-Short';
        }
        if (position == 0){
            this.position = '2D';
        }
        else if (position == 1){
            this.position = '3D';
        }
        this.container = '';
        this.volume = volume;
        this.pitch = pitch;
        this.outputbus = outputbus;
    }

    setContainer(container){
        this.container = container;
    }
}

module.exports = SoundData;